<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Authority extends CI_Model {
	
	function __construct(){
		parent::__construct();
		$this->load->database();
	}
	
	public function getLoginUser($userName,$password){	
		$this->db->where('username',$userName);
		$this->db->where('password',$password);
		$this->db->select('*');
		$query=$this->db->get('user_info');
		return $query->result();
	}
}

